home *** CD-ROM | disk | FTP | other *** search
- @ECHO off
-
- REM Demo of how to use ErrorLevels in batch files.
- REM For use with BigSortPlus(tm).
- REM Written 08/15/93 MeadowBrook Industries, Ltd. ALL RIGHTS RESERVED
-
- BigSort %1 %2 %3 %4
- IF ErrorLevel 50 GOTO Key
- IF ErrorLevel 40 GOTO Format
- IF ErrorLevel 30 GOTO Output_File
- IF ErrorLevel 20 GOTO Input_File
- IF ErrorLevel 10 GOTO System
- IF ErrorLevel 1 GOTO Params
- IF ErrorLevel 0 GOTO Success
-
- :Key
- ECHO Error with the specified key! re-enter.
- GOTO Exit
- :Format
- ECHO Error with the specified format! re-enter.
- GOTO Exit
- :Output_File
- ECHO Error with the output file! re-enter.
- GOTO Exit
- :Input_File
- ECHO Error with the input file(s)! re-enter.
- GOTO Exit
- :Memory
- ECHO Error with the system configuration!
- GOTO Exit
- :Params
- ECHO Input and Output files are required! re-enter.
- GOTO Exit
- :Success
- ECHO Successful run. Terminating processing.
-
- :Exit
-
-